<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>OA办公精灵登陆页</title>
<link href="<?php echo base_url()?>css/base.css" type="text/css" rel="stylesheet" />
<link href="<?php echo base_url()?>css/common.css" type="text/css" rel="stylesheet" />
<link href="<?php echo base_url()?>css/pages.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="<?php echo base_url()?>js/DD_belatedPNG.js"></script><!--imgpng-->
<script type="text/javascript">   DD_belatedPNG.fix('.login_title,.login_left,.login_reflection');   </script>
<script type="text/javascript" src="<?php echo base_url()?>js/jquery-1.7.2.min.js"></script>
<script type="text/javascript">
$(function(){	
    get_captcha();
    $('#reload-captcha').click(get_captcha);
})
function get_captcha() {
	$.ajax({
	   type: "POST",
	   url: "<?php echo site_url('login/get_captcha')?>/",
	   data: "name=John&location=Boston",
	   success: function(msg){
		$('#captcha-image').html(msg);
	   }
	}); 
};
function sub(){
	var name = $("input[name='username']").val();
	var word = $("input[name='password']").val();
	var captcha = $("input[name='captcha']").val();
	if(!name){alert("请输入用户名");return false;}
	if(!word){alert("请输入用户密码");return false;}
	if(!captcha){alert("请填写验证码");return false;}	
}
//<![CDATA[		   
function mouseOver()
{
document.getElementById('id1').url ="../images/okbutton1.jpg  no-repeat"
}
function mouseOut()
{
document.getElementById('b1').src ="/i/eg_mouse2.jpg"
}
//]]
</script>
</head>

<body style="background:url(<?php echo base_url()?>images/login_bg.jpg) repeat-x top left #3d83cb;">
<!-- login{ -->
<div class="login" >
	<div class="login_box">
		<div class="login_title">
		</div>
		<!-- login_left{ -->
		<div class="login_left"></div>
		<!-- }login_left -->
		<!-- login_right{ -->
		<div class="login_right">
			<form method="post" action="/index.php/login/logining" onsubmit="return sub()">
            <p><span>登录名：</span><input name="username" type="text" /></p>
			<p><span>密&nbsp;&nbsp;&nbsp;码：</span><input name="password" type="password" /></p>
			<p class="vertion"><span>验证码：</span><input name="captcha" type="text" /><strong id="captcha-image"></strong><em id="reload-captcha">换一张</em></p>
			<p class="ok_go"><input class="ok_button" name="" type="submit" value="登录" onmouseover="this.className = 'ok_button ok_button1'" onmouseout="this.className = 'ok_button'" /></p>
            </form>		
		</div>
		<!-- }login_right -->
	</div>
	<div class="login_reflection">
	
	</div>
</div>
<!-- }login -->
</body>
</html>
